package com.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

//nacos-provider 服务名称
@FeignClient("nacos-provider")
public interface ProviderClient {

    //@GetMapping("/hi") 服务接口
    //@RequestParam 服务接口的参数
    @GetMapping("/hi")
    String hi(@RequestParam(value = "name", defaultValue = "客户端调用", required = false) String name);
}
